✅Discord ボタンのUserScriptを組む
$ [>~ 青]
$ [>' 灰]
$ [>! 赤]
$ [># 緑]
$ [>% 赤枠]
$ [>& 青枠]
code:script.js
scrapbox.PopupMenu.addButton({
title: '📘',
onClick: text => text.split('\n').map(line => [>~ ${line}]).join('\n')
})
scrapbox.PopupMenu.addButton({
title: '🐺',
onClick: text => text.split('\n').map(line => [>' ${line}]).join('\n')
})
scrapbox.PopupMenu.addButton({
title: '📕',
onClick: text => text.split('\n').map(line => [>! ${line}]).join('\n')
})
scrapbox.PopupMenu.addButton({
title: '📗',
onClick: text => text.split('\n').map(line => [># ${line}]).join('\n')
})
scrapbox.PopupMenu.addButton({
title: '🟥',
onClick: text => text.split('\n').map(line => [>% ${line}]).join('\n')
})
scrapbox.PopupMenu.addButton({
title: '🟦',
onClick: text => text.split('\n').map(line => [>& ${line}]).join('\n')
})